package interpreter;

import java.util.Comparator;

public class CompareRealResult implements Comparator<RealResult>{
	int index;
	
	public CompareRealResult(int _index) {
		index = _index;
	}
	
	public int compare(RealResult r1, RealResult r2) {
		return r1.params[index] - r2.params[index];
	}
}
